<?php
session_start();
if(strlen($_SESSION["u_name"])== 0)
{
 header("Location:index.php");
}
include 'Classes/MyClass.php';
$objMyCass = new MyClass();
$userdetails = array();
$userdetails = $objMyCass->FetchUserRecords($_SESSION["user_id"]);
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Resources</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script src="js/jquery-1.4.2.js" type="text/javascript" language="javascript"></script>
<script src="js/ajax.js" type="text/javascript" language="javascript"></script>
<script src="js/tab-view.js" type="text/javascript" language="javascript"></script>
<link href="style.css" rel="stylesheet" type="text/css" />
<link href="css/tab-view.css" rel="stylesheet" type="text/css" />
<link href="cssbuttons.css" rel="stylesheet" type="text/css">
<link href="skins/sample/sample.css" rel="stylesheet" type="text/css">

</head>
<body>




<!-- container -->
<div id="container">
	<div class="center">
		<!-- header -->
		<div class="header">
			<div class="logo"><a href="#"><img src="images/logo.png" alt="" /></a></div>
			<div class="login">
				<div class="studentlogin">
					<!-- <h1>Student Login</h1>-->
					<div class="username">
						<!-- <p class="uname">Username:</p> -->
						<div class=""><!-- <input type="text" class="t_box" value="" /> --></div>
					</div>
					<div class="">
						<!-- <p class="uname">Password:</p> -->
						<div class=""><!-- <input type="password" class="t_box" value="" /> --></div>
					</div> 
					
				</div>
				
				<div class="logo1"><a href="#"><img src="images/logo1.png" alt="" /></a></div>
				<div style="text-align:right" >Welcome ,<?php print $_SESSION["u_name"];?>&nbsp;&nbsp;<a href="Logout.php">Log Out</a></div>
			</div>
			<div class="nav">
				<ul>
					<li><a href="Home.php" class="select" >Home</a></li>
					<li><a href="about-us.php">About Us</a></li>
					<li><a href="GmatPreparation.php">GMAT Preperation</a></li> 
					<li><a href="AdmissionConsulting.php">Admissions Consulting</a></li> 
					<li><a href="http://techbridge.co.in/forum/">MBA Forum</a></li> 
					<li><a href="contact-us.php">Contact Us</a></li>
				</ul>
			</div>
		</div>
		<!-- header -->
		<!-- middle -->
		<?php 
		if(strlen($_REQUEST['item'])>0)
		{
			$_SESSION['itemSelected'] = $_REQUEST['item'];
		}
		
		if(strlen($_REQUEST['amount'])>0)
		{
			$_SESSION['finalBookingPrice'] =$_REQUEST['amount'];
		}
		else
		{
			$_SESSION['finalBookingPrice'] = 0.00	;
		}
		?>
		<div class="middle">
		<form action="paypal/paypal.php?amount=25" method="post">
		<table cellpadding="0" cellspacing="0" width="400" style="margin-top:20px;margin-left:300px;border: 2px solid #20696A" > 
 	<tr height="35">
 		<td width="180" style="padding-left: 80px;">
 			<b><span style="color: #074772">Original Resource Price :</span></b>
 		</td>
 		<td>
 			<b><span style="color: #074772"><?php echo number_format($_SESSION['finalBookingPrice'],2);?></span></b>
 		</td>
 	</tr>
 	<tr height="35">
 		<td width="180" style="padding-left: 80px;">
 			<b><span style="color: #074772">Transaction Charges :</span></b>
 		</td>
 		<td>
	 		<b><span style="color: #074772">
	 			<?php 
	 			$transaction_charge = number_format(((3.1*$_SESSION['finalBookingPrice'])/100),2);
	 			echo $transaction_charge;?>
	 		</span></b>
 		</td>
 	</tr>
 	<tr height="35">
 		<td width="180" style="padding-left: 80px;">
 			<b><span style="color: #074772">Total Charges :</span></b>
 		</td>
 		<td>
 			<b><span style="color: #074772">
 			<?php 
 			$finalCharge = ($transaction_charge + $_SESSION['finalBookingPrice']);
 			$_SESSION['payablePrice'] = $finalCharge;
 			echo $finalCharge;
 			?>
 			</span></b>
 		</td>
 	</tr>
 	<tr>
 		<td colspan="2" width="180" style="padding-left: 80px;">&nbsp;
 		
 		</td>
 	</tr>
 	<tr>
<!-- 		<td colspan="2" align="center" width="180" style="padding-left: 80px;">-->
<!-- 			<img src="https://www.paypal.com/en_US/i/btn/btn_xpressCheckout.gif" align="left" style="margin-right:7px;" onclick="booking_ok();" />-->
<!-- 		</td>-->

	<td colspan="2" align="center" width="180" style="padding-left: 80px;">
			<button type="submit" name=""  style='background-image:url("paypal/btn_xpressCheckout.gif");height:45px;width:145px;cursor:pointer;'></button>
	</td>
 		
 	</tr>
 	
 	
 	
 	</table>
 	
		<tr >
 		<td style="height: 40px;">&nbsp; </td>
 	</tr>
		
		<div class="bar"><img src="images/ftopbg.png" alt=""/></div>
			</div>
		<!-- /middle -->
		<!-- footer -->
			<div class="footer">
				<ul>
					<li><a href="Home.php">Home</a></li>
					<li>|</li>
					<li><a href="about-us.php">About Us</a></li>
					<li>|</li>
					<li><a href="GmatPreparation.php">GMAT Preperation</a></li>
					<li>|</li>
					<li><a href="AdmissionConsulting.php">Admissions Consulting</a></li>
					<li>|</li>
					<li><a href="http://topmbaconsultant.com/forum/">MBA Blog</a></li>
					<li>|</li>
					<li><a href="contact-us.php">Contact Us</a></li>
				</ul>
			</div>
		<!-- /footer -->
	</div>
</div>
<!-- / container -->
 </body>
</html>
